import request from './request.js'

// 获取表单分组
export function login(userId) {
  return request({
    url: `sys/auth/login/ignore/${userId}`,
    method: 'get',
  })
}

// 修改密码
export function updatePassword(param) {
  return request({
    url: 'sys/auth/updatePassword',
    method: 'put',
    params: param,
  })
}

export function getToken(code) {
  return request({
    url: `sys/auth/userinfo/${code}`,
    method: 'get',
  })
}
